package com.cloud.cmt.usermanage.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.cloud.cmt.usermanage.base.BaseEntity;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Entity;

/**
 * User: wcy
 * Date: 2017/10/17
 * Time: 15:42
 */
@Data
@Entity(name = "role_right_relation")
public class RoleRightRelation extends BaseEntity<Long>{

    @JsonProperty("right_id")
    @JSONField(name = "right_id")
    @ApiModelProperty(name = "right_id", notes = "权限id", example = "1")
    private String rightId;

    @JsonProperty("role_id")
    @JSONField(name = "role_id")
    @ApiModelProperty(name = "role_id", notes = "角色id", example = "1")
    private String roleId;

    @JsonProperty("tenant_id")
    @JSONField(name = "tenant_id")
    @ApiModelProperty(name = "tenant_id", notes = "租户", example = "1")
    private String tenantId;

}
